package com.example.backend.mapper;

import com.example.backend.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface UserMapper {
    void dropTable();
    void createTable();

    List<User> findAll();
    int insertOne(User user);
    User findByName(String name);
}
